<?php $this->pageTitle=Yii::app()->name . ' - '.UserModule::t("Change Password");
$this->breadcrumbs=array(
	UserModule::t("Profile") => array('/user/profile'),
	UserModule::t("Change Password"),
);
$acc = UserModule::isAdmin();
?>
<div class="single-head">
	<h3 class="pull-left"><i class="fa fa-desktop purple"></i> <?php echo UserModule::t('Change password'); ?></h3>
	<div class="breads pull-right">
		<strong>Nav</strong> : <a href="<?php echo Yii::app()->createUrl('user/profile'); ?>">Home</a>  / Change Password  
	</div>
	<div class="clearfix"></div>
</div>

<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'login-form',
    'type'=>'horizontal',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
	<?php echo $form->errorSummary($model); ?>
	
	<?php echo $form->passwordFieldRow($model,'oldPassword',array('class'=>'form-control span3')); ?>
	<?php echo $form->passwordFieldRow($model,'password',array('class'=>'form-control span3')); ?>
	<?php echo $form->passwordFieldRow($model,'verifyPassword',array('class'=>'form-control span3')); ?>
	
	
	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'submit',
            'type'=>'primary',
            'label'=>'Save',
        )); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->